<!doctype html><html lang dir=ltr><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>WordPress + OLS | Hui.Ke - Blog</title><meta name=generator content="Hugo Eureka 0.9.3"><link rel=stylesheet href=https://b.hui.ke/css/eureka.min.9cec6350e37e534b0338fa9a085bf06855de3b0f2dcf857e792e5e97b07ea905d4d5513db554cbc26a9c3da622bae92d.css><script defer src=https://b.hui.ke/js/eureka.min.fa9a6bf6d7a50bb635b4cca7d2ba5cf3dfb095ae3798773f1328f7950028b48c17d06276594e1b5f244a25a6c969a705.js></script>
<link rel=preconnect href=https://fonts.googleapis.com><link rel=preconnect href=https://fonts.gstatic.com crossorigin><link rel=preload href="https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Noto+Serif+SC:wght@400;600;700&display=swap" as=style onload='this.onload=null,this.rel="stylesheet"'><link rel=stylesheet href=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/styles/vs.min.css media=print onload='this.media="all",this.onload=null' crossorigin><script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/bash.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/ini.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/json.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/php.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/python.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/shell.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/sql.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/x86asm.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/xml.min.js crossorigin></script>
<link rel=stylesheet href=https://b.hui.ke/css/highlightjs.min.2958991528e43eb6fc9b8c4f2b8e052f79c4010718e1d1e888a777620e9ee63021c2c57ec7417a3108019bb8c41943e6.css media=print onload='this.media="all",this.onload=null'><script defer type=text/javascript src=https://lib.baomitu.com/font-awesome/6.1.1/js/all.min.js></script>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.css integrity=sha384-MlJdn/WNKDGXveldHDdyRP1R4CTHr3FeuDNfhsLPYrq2t0UBkUdK2jyTnXPEK1NQ media=print onload='this.media="all",this.onload=null' crossorigin><script defer src=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.js integrity=sha384-VQ8d8WVFw0yHhCk5E8I86oOhv48xLpnDZx5T9GogA/Y84DcCKWXDmSDfn13bzFZY crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/contrib/auto-render.min.js integrity=sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR crossorigin></script>
<script>document.addEventListener("DOMContentLoaded",function(){renderMathInElement(document.body,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}]})})</script><script defer src=https://cdn.jsdelivr.net/npm/mermaid@8.14.0/dist/mermaid.min.js integrity=sha384-atOyb0FxAgN9LyAc6PEf9BjgwLISyansgdH8/VXQH8p2o5vfrRgmGIJ2Sg22L0A0 crossorigin></script>
<link rel=icon type=image/png sizes=32x32 href=https://b.hui.ke/icon_hub7ca0b5404c6d576559b2bd22c64b0e5_2009_32x32_fill_box_center_3.png><link rel=apple-touch-icon sizes=180x180 href=https://b.hui.ke/icon_hub7ca0b5404c6d576559b2bd22c64b0e5_2009_180x180_fill_box_center_3.png><meta name=description content="  这个标题是 OpenLiteSpeed 官方文档 的标题。但准确来说应该是：在最新版的 Ubuntu 22.04 LTS 系统上使用最新版的 Docker 容器部署最新版的 OpenLiteSpeed 并安装最新版的 WordPress。"><script type=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Posts","item":"https://b.hui.ke/posts/"},{"@type":"ListItem","position":2,"name":"WordPress + OLS","item":"https://b.hui.ke/posts/ols-wordpress/"}]}</script><script type=application/ld+json>{"@context":"https://schema.org","@type":"Article","mainEntityOfPage":{"@type":"WebPage","@id":"https://b.hui.ke/posts/ols-wordpress/"},"headline":"WordPress \u002b OLS | Hui.Ke - Blog","datePublished":"2022-05-18T15:41:31+08:00","dateModified":"2022-05-18T15:41:31+08:00","wordCount":1387,"author":{"@type":"Person","name":"Hui.Ke"},"publisher":{"@type":"Person","name":"Hui.Ke","logo":{"@type":"ImageObject","url":"https://b.hui.ke/icon.png"}},"description":"\u003cp\u003e  这个标题是 \u003ca href=\u0022https:\/\/docs.litespeedtech.com\/cloud\/docker\/ols-wordpress\/\u0022\u003eOpenLiteSpeed 官方文档\u003c\/a\u003e 的标题。但准确来说应该是：在最新版的 Ubuntu 22.04 LTS 系统上使用最新版的 Docker 容器部署最新版的 OpenLiteSpeed 并安装最新版的 WordPress。\u003c\/p\u003e"}</script><meta property="og:title" content="WordPress + OLS | Hui.Ke - Blog"><meta property="og:type" content="article"><meta property="og:image" content="https://b.hui.ke/icon.png"><meta property="og:url" content="https://b.hui.ke/posts/ols-wordpress/"><meta property="og:description" content="  这个标题是 OpenLiteSpeed 官方文档 的标题。但准确来说应该是：在最新版的 Ubuntu 22.04 LTS 系统上使用最新版的 Docker 容器部署最新版的 OpenLiteSpeed 并安装最新版的 WordPress。"><meta property="og:site_name" content="Hui.Ke - Blog"><meta property="article:published_time" content="2022-05-18T15:41:31+08:00"><meta property="article:modified_time" content="2022-05-18T15:41:31+08:00"><meta property="article:section" content="posts"><meta property="article:tag" content="WordPress"><meta property="article:tag" content="OpenLiteSpeed"><meta property="og:see_also" content="https://b.hui.ke/posts/data-security-and-personal-information-protection/"><meta property="og:see_also" content="https://b.hui.ke/posts/mp-1/"><meta property="og:see_also" content="https://b.hui.ke/posts/regedit-delete-startup-item/"><meta property="og:see_also" content="https://b.hui.ke/posts/epidemic-prevention-and-cyber-security/"><meta property="og:see_also" content="https://b.hui.ke/posts/comparison-of-thin-light-laptops/"><meta property="og:see_also" content="https://b.hui.ke/posts/sangfor-pt1/"><meta property="og:see_also" content="https://b.hui.ke/posts/minutes-of-general-manager-xus-meeting-on-monday/"><meta property="og:see_also" content="https://b.hui.ke/posts/my-github-stars/"><meta property="og:see_also" content="https://b.hui.ke/posts/raspberry-pi-motion/"><meta property="og:see_also" content="https://b.hui.ke/posts/transfer-files-with-rsync/"><meta property="og:see_also" content="https://b.hui.ke/posts/comparison-of-iflytek-mice/"><meta property="og:see_also" content="https://b.hui.ke/posts/resolutions-for-vmware-tools-installation-failure/"><meta property="og:see_also" content="https://b.hui.ke/posts/raspberry-pi-intranet-penetration/"><meta property="og:see_also" content="https://b.hui.ke/posts/image-and-video-optimization/"><meta property="og:see_also" content="https://b.hui.ke/posts/ccia-top-50-2020/"><meta property="og:see_also" content="https://b.hui.ke/posts/cdn-nodes/"><meta property="og:see_also" content="https://b.hui.ke/posts/vulfocus-building-guide/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-vulstudy/"><meta property="og:see_also" content="https://b.hui.ke/posts/windows-file-recovery-help/"><meta property="og:see_also" content="https://b.hui.ke/posts/bt-and-trojan/"><meta property="og:see_also" content="https://b.hui.ke/posts/steam-free-games-27/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-trojan/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-taobao-coupon-website/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-ssr/"><meta property="og:see_also" content="https://b.hui.ke/posts/hello-everyone/"><script>!function(e){"use strict";!function(){var i,s=window,o=document,a=e,c="".concat("https:"===o.location.protocol?"https://":"http://","sdk.51.la/js-sdk-pro.min.js"),n=o.createElement("script"),r=o.getElementsByTagName("script")[0];n.type="text/javascript",n.setAttribute("charset","UTF-8"),n.async=!0,n.src=c,n.id="LA_COLLECT",a.d=n,i=function(){s.LA.ids.push(a)},s.LA?s.LA.ids&&i():(s.LA=e,s.LA.ids=[],i()),r.parentNode.insertBefore(n,r)}()}({id:"Jgb8aUbG5e3rqhrs",ck:"Jgb8aUbG5e3rqhrs",autoTrack:!0,hashMode:!0})</script><body class="flex min-h-screen flex-col"><header class="min-h-16 pl-scrollbar bg-secondary-bg fixed z-50 flex w-full items-center shadow-sm"><div class="mx-auto w-full max-w-screen-xl"><script>let storageColorScheme=localStorage.getItem("lightDarkMode");((storageColorScheme=="Auto"||storageColorScheme==null)&&window.matchMedia("(prefers-color-scheme: dark)").matches||storageColorScheme=="Dark")&&document.getElementsByTagName("html")[0].classList.add("dark")</script><nav class="flex items-center justify-between flex-wrap px-4 py-4 md:py-0"><a href=/ class="me-6 text-primary-text text-xl font-bold">Hui.Ke - Blog</a>
<button id=navbar-btn class="md:hidden flex items-center px-3 py-2" aria-label="Open Navbar">
<i class="fas fa-bars"></i></button><div id=target class="hidden block md:flex md:grow md:justify-between md:items-center w-full md:w-auto text-primary-text z-20"><div class="md:flex md:h-16 text-sm md:grow pb-4 md:pb-0 border-b md:border-b-0"><a href=/posts/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 selected-menu-item me-4">Posts</a>
<a href=/docs/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Docs</a>
<a href=/categories/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Categories</a>
<a href=/series/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Series</a>
<a href=/tags/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Tags</a>
<a href=/love/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Love</a>
<a href=/about/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">About</a></div><div class=flex><div class="relative pt-4 md:pt-0"><div class="cursor-pointer hover:text-eureka" id=lightDarkMode><i class="fas fa-adjust"></i></div><div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-30" id=is-open></div><div class="absolute flex flex-col start-0 md:start-auto end-auto md:end-0 hidden bg-secondary-bg w-48 rounded py-2 border border-tertiary-bg cursor-pointer z-40" id=lightDarkOptions><span class="px-4 py-1 hover:text-eureka" name=Light>Light</span>
<span class="px-4 py-1 hover:text-eureka" name=Dark>Dark</span>
<span class="px-4 py-1 hover:text-eureka" name=Auto>Auto</span></div></div></div></div><div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-0" id=is-open-mobile></div></nav><script>let element=document.getElementById("lightDarkMode");storageColorScheme==null||storageColorScheme=="Auto"?document.addEventListener("DOMContentLoaded",()=>{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",switchDarkMode)}):storageColorScheme=="Light"?(element.firstElementChild.classList.remove("fa-adjust"),element.firstElementChild.setAttribute("data-icon","sun"),element.firstElementChild.classList.add("fa-sun")):storageColorScheme=="Dark"&&(element.firstElementChild.classList.remove("fa-adjust"),element.firstElementChild.setAttribute("data-icon","moon"),element.firstElementChild.classList.add("fa-moon")),document.addEventListener("DOMContentLoaded",()=>{getcolorscheme(),switchBurger()})</script></div></header><main class="grow pt-16"><div class=pl-scrollbar><div class="mx-auto w-full max-w-screen-xl lg:px-4 xl:px-8"><div class="grid grid-cols-2 gap-4 lg:grid-cols-8 lg:pt-12"><div class="bg-secondary-bg col-span-2 rounded px-6 py-8 lg:col-span-6"><article class=prose><h1 class=mb-4>WordPress + OLS</h1><div class="text-tertiary-text not-prose mt-2 flex flex-row flex-wrap items-center"><div class="me-6 my-2"><i class="fas fa-calendar me-1"></i>
<span>2022-05-18</span></div><div class="me-6 my-2"><i class="fa-solid fa-pen-to-square me-1"></i>
<span>2022-05-18</span></div><div class="me-6 my-2"><i class="fas fa-clock me-1"></i>
<span>3 min read</span></div><div class="me-6 my-2"><i class="fas fa-folder me-1"></i>
<a href=https://b.hui.ke/categories/it/ class=hover:text-eureka>IT</a></div><div class="me-6 my-2"><i class="fas fa-th-list me-1"></i>
<a href=https://b.hui.ke/series/misc/ class=hover:text-eureka>Misc</a></div><div class="me-6 my-2"><i class="fa-solid fa-eye me-1"></i>
<span id=busuanzi_value_page_pv><i class="fa fa-spinner fa-spin"></i></span> Hits</div></div><p>  这个标题是 <a href=https://docs.litespeedtech.com/cloud/docker/ols-wordpress/>OpenLiteSpeed 官方文档</a> 的标题。但准确来说应该是：在最新版的 Ubuntu 22.04 LTS 系统上使用最新版的 Docker 容器部署最新版的 OpenLiteSpeed 并安装最新版的 WordPress。</p><h2 id=系统要求>系统要求</h2><p>  建议选择与博主一样的系统版本进行搭建：<a href="https://bandwagonhost.com/aff.php?aff=53011">搬瓦工</a> <strong>Ubuntu 22.04</strong> x86_64</p><blockquote><p>友情提示：<a href="https://bandwagonhost.com/aff.php?aff=53011">搬瓦工</a> 可能需要先翻墙才可访问！</p></blockquote><p>  建议使用原版纯净系统进行安装。首次进入系统，可以根据 <a href=https://b.hui.ke/posts/ubuntu-optimization/>Ubuntu 优化</a> 进行优化。</p><h2 id=安装-docker>安装 Docker</h2><pre><code class=language-shell>sudo apt remove docker docker-engine docker.io containerd runc     # 卸载旧版本
sudo apt update     # 更新软件包索引
sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release     # 安装 Docker 所需的软件包
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg     # 添加 Docker 的官方 GPG 密钥
echo \
  &quot;deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable&quot; | sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null     # 设置稳定存储库
sudo apt update     # 更新软件包索引
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin     # 安装 Docker 和 Docker Compose
</code></pre><p>  至此 Docker 环境安装完成，接下来开始在 Docker 中部署 OpenLiteSpeed 和 WordPress</p><h2 id=安装的组件>安装的组件</h2><p>  我们先了解一下在 Docker 中部署 OpenLiteSpeed 和 WordPress，会安装哪些组件。</p><table><thead><tr><th style=text-align:center>组件</th><th style=text-align:center>版本</th></tr></thead><tbody><tr><td style=text-align:center>Linux</td><td style=text-align:center>Ubuntu 20.04</td></tr><tr><td style=text-align:center>OpenLiteSpeed</td><td style=text-align:center><a href=https://openlitespeed.org/downloads/>Latest version</a></td></tr><tr><td style=text-align:center>MariaDB</td><td style=text-align:center><a href=https://hub.docker.com/_/mariadb>Stable version：10.5</a></td></tr><tr><td style=text-align:center>PHP</td><td style=text-align:center><a href=http://rpms.litespeedtech.com/debian/>Latest version</a></td></tr><tr><td style=text-align:center>LiteSpeed Cache</td><td style=text-align:center><a href=https://wordpress.org/plugins/litespeed-cache/>Latest from WordPress.org</a></td></tr><tr><td style=text-align:center>ACME</td><td style=text-align:center><a href=https://github.com/acmesh-official/get.acme.sh>Latest from ACME official</a></td></tr><tr><td style=text-align:center>wordPress</td><td style=text-align:center><a href=https://wordpress.org/download/>Latest from WordPress</a></td></tr><tr><td style=text-align:center>phpMyAdmin</td><td style=text-align:center><a href=https://hub.docker.com/r/bitnami/phpmyadmin/>Latest from dockerhub</a></td></tr></tbody></table><h2 id=开始安装>开始安装</h2><pre><code class=language-shell>git clone https://github.com/litespeedtech/ols-docker-env.git     # 克隆此存储库或将此存储库中的文件复制到新文件夹中
cd ols-docker-env/     # 进入保存的文件夹
</code></pre><blockquote><p>打断一下，到目前为止所有的步骤都是依据官方文档一步步下来的。但是接下来会存在一个<strong>致命问题</strong>，就是新版的 Docker Compose 的命令已经修改，所以官方提供的所有脚本都需要更改 Docker Compose 的命令：将 <code>docker-compose</code> 替换为 <code>docker compose</code>（是的没错，就是将短横线改成空格，要不然命令无法执行！）</p></blockquote><h3 id=替换命令>替换命令</h3><p>  所以我们不得不停止安装步骤，先进入每一个可能会用到的 shell 脚本，替换 Docker Compose 的命令。</p><p>  此处又得再插一句，替换 Linux 文件中的某些内容，可以使用“vi”对文件进行编辑，而后输入</p><pre><code class=language-shell>:.,$s/**替换前**/**替换后**/g     # 此命令意为：从当前所在行至最后一行，将所有“替换前”的内容，替换为“替换后”的内容
</code></pre><p>  掌握了上述命令，就不必再人工一行行的查找需要被替换的内容了，大大提高了我们的生产效率。所以接下来我们继续进入每一个 shell 脚本，开始替换 Docker Compose 命令</p><pre><code class=language-shell>vi bin/webadmin.sh     # OpenLiteSpeed 面板脚本
vi bin/demosite.sh     # 演示站点脚本
vi bin/domain.sh     # 域名脚本
vi bin/database.sh     # 数据库脚本
vi bin/appinstall.sh     # WordPress 脚本
vi bin/acme.sh     # SSL 自动签发脚本
</code></pre><p>  将上述六个 shell 脚本中的 <code>docker-compose</code> 全部替换为 <code>docker compose</code> 后，我们就可以继续安装了。</p><h3 id=继续安装>继续安装</h3><pre><code class=language-shell>docker compose up -d     # 使用守护程序模式运行 Docker 容器
bash bin/webadmin.sh my_password     # 设置 OpenLiteSpeed 网络管理员密码（账号为 admin）
bash bin/demosite.sh     # 启动演示站点
bash bin/domain.sh -A example.com     # 创建域名和虚拟主机（OLS 中的概念，可以理解为创建一个网站空间）
bash bin/database.sh -D example.com     # 创建数据库（自动生成用户、密码和数据库名称）
bash bin/database.sh -D example.com -U USER_NAME -P MY_PASS -DB DATABASE_NAME     # 使用此命令指定数据库的用户、密码和数据库名称
./bin/appinstall.sh -A wordpress -D example.com     # 安装 WordPress 网站
./bin/acme.sh -I -E EMAIL_ADDR     # 运行 ACME 安装命令，使用电子邮件通知
./bin/acme.sh -D example.com     # 签发网站 SSL 证书
bash bin/webadmin.sh -M enable     # 在 Web 服务器上启用 OWASP ModSecurity
</code></pre><p>  至此我们在最新版的 Ubuntu 22.04 LTS 系统上使用最新版的 Docker 容器部署最新版的 OpenLiteSpeed 并安装最新版的 WordPress 的工作就完成了。</p><blockquote><p>Enjoy your WordPress！</p></blockquote><h2 id=extend>Extend</h2><p>  如果你只需要搭建一个 WordPress 且不打算再维护更新，那就不用再往下看了。下面记录了一些后台地址和可能会用到的命令。</p><h3 id=后台端口>后台端口</h3><ul><li>7080：OLS 网络管理</li><li>8080：phpMyAdmin http 访问</li><li>8443：phpMyAdmin https 访问</li></ul><p>  登录数据库的账号和密码为刚才安装时通过 <code>bash bin/database.sh -D example.com</code> 命令生成的密码。</p><h3 id=docker-命令>Docker 命令</h3><pre><code class=language-shell>docker-compose up     # 启动容器
docker-compose up -d     # 使用守护程序模式运行 Docker 容器
docker-compose stop     # 停止容器
docker-compose down     # 删除容器
</code></pre><h3 id=ols-相关>OLS 相关</h3><pre><code class=language-shell>bash bin/domain.sh -D example.com     # 删除域和虚拟主机
bash bin/webadmin.sh -U     # 更新网络服务器
bash bin/webadmin.sh -M disable     # 在 Web 服务器上禁用 OWASP ModSecurity
</code></pre><blockquote><p>官方文档中有针对“php.ini”的操作，但截止本文发布前，经博主测试均为 php.ini 路径有误，故不推荐使用官方文档命令修改或覆盖 php.ini 文件。</p></blockquote></article><div class=my-4><a href=https://b.hui.ke/tags/wordpress/ class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 me-2 hover:text-eureka">#WordPress</a>
<a href=https://b.hui.ke/tags/openlitespeed/ class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 me-2 hover:text-eureka">#OpenLiteSpeed</a></div><div class=py-2><div class="my-8 flex flex-col items-center md:flex-row"><a href=https://b.hui.ke/authors/hui.ke/ class="md:me-4 text-primary-text h-24 w-24"><img src=https://b.hui.ke/bagua.webp class="bg-primary-bg w-full rounded-full" alt=Avatar></a><div class="mt-4 w-full md:mt-0 md:w-auto"><a href=https://b.hui.ke/authors/hui.ke/ class="mb-2 block border-b pb-1 text-lg font-bold"><h3>Hui.Ke</h3></a><span class="block pb-2">❤ Cyber Security | Safety is a priority.</span>
<a href=mailto:3199731997@qq.com class=me-2><i class="fas fa-envelope"></i></a>
<a href="https://wpa.qq.com/msgrd?v=3&uin=3199731997" class=me-2><i class="fab fa-qq"></i></a>
<a href=/images/aixinxianquan.webp class=me-2><i class="fab fa-weixin"></i></a></div></div></div><div class="-mx-2 mt-4 flex flex-col border-t px-2 pt-4 md:flex-row md:justify-between"><div><span class="text-primary-text block font-bold">Previous</span>
<a href=https://b.hui.ke/posts/blog-is-every-bloggers-own-blog/ class=block>博客，是每一位博主自己的博客</a></div><div class="mt-4 md:mt-0 md:text-right"><span class="text-primary-text block font-bold">Next</span>
<a href=https://b.hui.ke/posts/2022-05-16/ class=block>上周周记 - 2022/05/16</a></div></div><div id=valine-comments class=mt-4></div><script defer src=https://cdn.jsdelivr.net/npm/valine@1.4.16/dist/Valine.min.js integrity=sha384-e0+DNUCJo75aOAzHQbFWYBCM9/S4f0BhRJXvEgbE3mMS85RM20MSSGStHuNdY2QK crossorigin></script>
<script>document.addEventListener("DOMContentLoaded",function(){new Valine({el:"#valine-comments",appId:"BQnVqWIiq78AdqwyhvBVAa3y-MdYXbMMI",appKey:"RKg5By312YjM8rU6WkkfK9IN",recordIP:"true",serverURLs:"https://l.hui.ke",visitor:"true"})})</script></div><div class=col-span-2><div class="bg-secondary-bg prose max-w-none rounded p-6"><h3>Series of Posts</h3><a href=https://b.hui.ke/posts/data-security-and-personal-information-protection/ class=no-underline>数据安全 & 个人信息保护</a><br><a href=https://b.hui.ke/posts/mp-1/ class=no-underline>密评从零到 0.001</a><br><a href=https://b.hui.ke/posts/regedit-delete-startup-item/ class=no-underline>注册表删启动项</a><br><a href=https://b.hui.ke/posts/ols-wordpress/ class=no-underline>WordPress + OLS</a><br><a href=https://b.hui.ke/posts/epidemic-prevention-and-cyber-security/ class=no-underline>防疫 & 网络安全</a><br><a href=https://b.hui.ke/posts/comparison-of-thin-light-laptops/ class=no-underline>轻薄本对比</a><br><a href=https://b.hui.ke/posts/sangfor-pt1/ class=no-underline>Sangfor PT1 Certification</a><br><a href=https://b.hui.ke/posts/minutes-of-general-manager-xus-meeting-on-monday/ class=no-underline>周一徐总会议纪要</a><br><a href=https://b.hui.ke/posts/my-github-stars/ class=no-underline>我的 GitHub 星标项目</a><br><a href=https://b.hui.ke/posts/raspberry-pi-motion/ class=no-underline>树莓派运动监测和录制</a><br><a href=https://b.hui.ke/posts/transfer-files-with-rsync/ class=no-underline>使用 rsync SSH 传输文件</a><br><a href=https://b.hui.ke/posts/comparison-of-iflytek-mice/ class=no-underline>科大讯飞鼠标参数对比</a><br><a href=https://b.hui.ke/posts/resolutions-for-vmware-tools-installation-failure/ class=no-underline>VMware Tools 安装失败的解决办法</a><br><a href=https://b.hui.ke/posts/raspberry-pi-intranet-penetration/ class=no-underline>树莓派内网穿透</a><br><a href=https://b.hui.ke/posts/image-and-video-optimization/ class=no-underline>网站图片、视频优化处理</a><br><a href=https://b.hui.ke/posts/ccia-top-50-2020/ class=no-underline>2020 年 CCIA 中国网络安全竞争力 50 强榜单</a><br><a href=https://b.hui.ke/posts/cdn-nodes/ class=no-underline>CDN 节点 IP</a><br><a href=https://b.hui.ke/posts/vulfocus-building-guide/ class=no-underline>Vulfocus 搭建指南</a><br><a href=https://b.hui.ke/posts/build-vulstudy/ class=no-underline>搭建 vulstudy</a><br><a href=https://b.hui.ke/posts/windows-file-recovery-help/ class=no-underline>Windows File Recovery 使用帮助</a><br><a href=https://b.hui.ke/posts/bt-and-trojan/ class=no-underline>在宝塔上制作酸酸乳</a><br><a href=https://b.hui.ke/posts/steam-free-games-27/ class=no-underline>Steam 免费游戏 代码一键领取 27 个</a><br><a href=https://b.hui.ke/posts/build-trojan/ class=no-underline>制作“保质期长的”酸酸乳</a><br><a href=https://b.hui.ke/posts/build-taobao-coupon-website/ class=no-underline>搭建淘宝领券网</a><br><a href=https://b.hui.ke/posts/build-ssr/ class=no-underline>制作酸酸乳</a><br><a href=https://b.hui.ke/posts/hello-everyone/ class=no-underline>名言警句</a><br></div><div class="bg-primary-bg
prose sticky top-16 z-10 hidden px-6 py-4 lg:block"><h3>On This Page</h3></div><div class="sticky-toc hidden px-6 pb-6 lg:block"><nav id=TableOfContents><ul><li><a href=#系统要求>系统要求</a></li><li><a href=#安装-docker>安装 Docker</a></li><li><a href=#安装的组件>安装的组件</a></li><li><a href=#开始安装>开始安装</a><ul><li><a href=#替换命令>替换命令</a></li><li><a href=#继续安装>继续安装</a></li></ul></li><li><a href=#extend>Extend</a><ul><li><a href=#后台端口>后台端口</a></li><li><a href=#docker-命令>Docker 命令</a></li><li><a href=#ols-相关>OLS 相关</a></li></ul></li></ul></nav></div><script>window.addEventListener("DOMContentLoaded",()=>{enableStickyToc()})</script></div></div><script>document.addEventListener("DOMContentLoaded",()=>{hljs.highlightAll()})</script></div></div></main><footer class=pl-scrollbar><div class="mx-auto w-full max-w-screen-xl"><div class="text-center p-6 pin-b"><script async src=/js/click.js></script><div id=poem_ip></div><script type=text/javascript>jinrishici.load(function(e){tags.innerHTML=e.data.matchTags})</script><div><span id=timeDate>载入年天数...</span><span id=times>载入时分秒...</span>
<script async src=/js/duration.js></script></div><a href=https://www.foreverblog.cn/go.html target=_blank><img src=https://img.foreverblog.cn/wormhole_4_tp.gif alt style=display:inline-block;width:auto;height:32px title=穿梭虫洞-随机访问十年之约友链博客></a><p class="text-sm text-tertiary-text"><script async src=//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js></script>本站总访问量 <span id=busuanzi_value_site_pv></span> 次
&#183; 您是本站的第 <span id=busuanzi_value_site_uv></span> 个小伙伴</p><script async src=/js/tab.js></script></div></div></footer></body></html>